Calculate Principal